<template>
  <div class="wrapper">
    <div v-for="(item,index) in placeList" :key="index" class="card-wrapper">
      <div class="card-head">
        <svg-icon icon-class="userIcon" class="head-icon" />
        <span>{{ item.name }}</span>
      </div>
      <div class="card-body">
        <div>
          <svg-icon icon-class="time" />
          <span class="body-label">隔离开始日期：</span>
          <span>{{ item.startTime }}</span>
        </div>
        <div>
          <svg-icon icon-class="time" />
          <span class="body-label">预计解除日期：</span>
          <span>{{ item.endTime }}</span>
        </div>
        <div>
          <svg-icon icon-class="reason" />
          <span class="body-label">隔离原因：</span>
          <span>{{ item.reason }}</span>
        </div>
      </div>
      <div class="card-footer">
        <span class="fun-but">编辑</span>
        <span class="fun-but">删除</span>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  data() {
    return {
      placeList: [
        {
          name: '蔡嬢嬢',
          startTime: '2022-11-02 08:00',
          endTime: '2022-11-14 08:00',
          reason: '去沙坪坝区跳莎莎舞去沙坪坝区跳莎莎舞去沙坪坝区跳莎莎舞去沙坪坝区跳莎莎舞去沙坪坝区跳莎莎舞'
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.wrapper{
  padding: 28px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  .card-wrapper{
    background: #FFFFFF;
    box-shadow: 0px 6px 12px 2px rgba(39,138,210,0.15);
    border-radius: 16px 16px 16px 16px;
    width: 100%;
    min-height: 414px;
    &:not(:nth-child(1)){
      margin-top: 28px;
    }
    .card-head{
      width: 100%;
      height: 92px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding: 28px 28px 28px 34px;
      box-sizing: border-box;
      box-shadow: 0px 12px 12px 2px rgba(101,159,255,0.12);
      font-size: 32px;
      line-height: 32px;
      font-family: PingFang SC-Bold, PingFang SC;
      font-weight: bold;
      color: #232323;
      .head-icon{
        margin-right: 20px;
        font-size: 32px;
        // height: 32px;
        // width: 32px;
      }
    }
    .card-body{
      min-height: 222px;
      // display: flex;
      // justify-content: space-between;
      // align-items: center;
      padding:36px 34px 36px;
      box-sizing: border-box;
      font-size: 28px;
      font-family: PingFang SC-Regular, PingFang SC;
      font-weight: 400;
      border-bottom: 2px solid #EBEEF5;
      line-height: 40px;
      div:not(:nth-child(1)){
        margin-top: 24px;
      }
      .body-label{
        display: inline-block;
        margin-left: 14px;
        margin-right: 6px;
        width: 196px;
        color: #232323;
      }
    }
    .card-footer{
      height: 98px;
      padding: 19px 28px 19px;
      box-sizing: border-box;
      text-align: right;
      .fun-but{
        height: 60px;
        width: 136px;
        border-radius: 32px;
        cursor: pointer;
        padding: 14px 44px 12px;
        box-sizing: border-box;
        border: 2px solid #4989F2;
        line-height: 60px;
        text-align: center;
        font-size: 24px;
        font-family: PingFang SC-Regular, PingFang SC;
        font-weight: 400;
        color: #4989F2;
        &:nth-child(2){
          color: #FF4D4D;
          border-color: #FF4D4D;
          margin-left: 28px;

        }
      }
    }
  }

}
</style>
